<div id="articles">
    <ul>
        <?php $i = 0; foreach ($articles as $article): ?>
            <? if($i == 1) { ?>
        <li><? //echo $google->get_adsense(); ?></li>
                <?$i++; } else { $i++; } ?>
        <li>
            <h2 class="title">
                    <? echo $html->link($article['Article']['title'],'/articles/'.$time->format('Y/m/d',$article['Article']['created']).'/'.$article['Article']['seo_link']); ?>
            </h2>

                <? if($article["Article"]["show_author"]==1) { ?>
            <p class="article_author">
                        <?php __('author'); echo ': '.$article['User']['name'].', '; ?>
                        <?php __('created'); echo ': '.$time->timeAgoInWords($article['Article']['created']); ?>
            </p>
                <? } ?>

                <?php echo $article['Article']['intro_text']; ?>

                <?
                if($article['Article']['show_all']==1) {
                    echo $article['Article']['text'];
                }
                ?>

            <p class="article_information">
                    <? if($article["Article"]["show_informations"]==1) { ?>
                        <? __('visited'); echo ': '; echo $article['Article']['visited'].', '; ?>
                        <? __('comments'); echo ': '; echo $html->link(count($article['Comment']),'/articles/'.$time->format('Y/m/d',$article['Article']['created']).'/'.$article['Article']['seo_link'].'/#comments').', '; ?>
                        <? __('category'); echo ': '; echo $html->link($article['Category']['name'],'/categories/view/'.$article['Category']['seo_link']); ?>,
                        <? __('rating'); echo ': '.ife($rating->amount($article['Rating'])>0,$rating->get_rating($article['Rating']).'%','-'); ?>
                    <? } ?>
            </p>
        </li>
        <?php endforeach; ?>
        <? if(empty($articles)) { ?><li style="margin: 1em;"> <?__('No articles')?></li><?}?>
    </ul>
    <? echo $pagination->create(null,'articles'); ?>
</div>